// 手牌一
class handPokerPlay extends eui.Component{
    //private cardBg:eui.Image;
    public constructor(id:number=0){
        super();
        this.once(eui.UIEvent.COMPLETE,this.onComplete,this);
        if(id>0){
            this.skinName = "src/Game/gameRoom/poker/handPokerSkin"+id+".exml";
        }else{
            this.skinName = "src/Game/gameRoom/poker/handPokerSkin1.exml";
        }
        
    }
    private onComplete(){
        this.touchChildren = false;
        //this.cardBg.visible = false;
    }
    private pokerValue:eui.Image;
    public baotingDi: eui.Image;
    public setContent(_skinName:string,showBack:boolean=false){
        this.pokerValue.source = _skinName;
        this.showBack (showBack);
    }
    public setGray(show) {
        this.baotingDi.visible = show
    }
    //显示反的
    public showBack(e:boolean = true){
        /*if(e){
            this.cardBg.visible = true;
        }else{
            this.cardBg.visible = false;
        }*/
    }
}